package core.ui.demo;

import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.control.CheckBox;
import javafx.scene.layout.VBox;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoCheckBox
{
	public static VBox getCheckBox()
	{
		VBox box = new VBox();
		box.setSpacing(5);
		ObservableList<Node> boxs = box.getChildren();
		
		CheckBox checkBox1 = new CheckBox("复选按钮1");
		CheckBox checkBox2 = new CheckBox("复选按钮2");
		CheckBox checkBox3 = new CheckBox("复选按钮3");
		CheckBox checkBox4 = new CheckBox("复选按钮4");
		CheckBox checkBox5 = new CheckBox("复选按钮5");
		
		boxs.add(checkBox1);
		boxs.add(checkBox2);
		boxs.add(checkBox3);
		boxs.add(checkBox4);
		boxs.add(checkBox5);
		
		return box;
	}
}
